package com.tenghu.core.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
import com.tenghu.core.model.Emp;
import com.tenghu.core.service.IEmpService;
@Controller
public class EmpAction extends ActionSupport{
	
	@Autowired
	private IEmpService empService;
	
	@Autowired
	private com.tenghu.core.service.ISqlEmpService sqlEmpService;
	
	private List<Emp> empList;
	private List<com.tenghu.sql.model.Emp> sempList;
	
	public String index(){
		empList=empService.queryEmpList();
		sempList=sqlEmpService.queryEmpList();
		return "index";
	}

	public List<Emp> getEmpList() {
		return empList;
	}

	public void setEmpList(List<Emp> empList) {
		this.empList = empList;
	}

	public List<com.tenghu.sql.model.Emp> getSempList() {
		return sempList;
	}

	public void setSempList(List<com.tenghu.sql.model.Emp> sempList) {
		this.sempList = sempList;
	}
	
}
